﻿#include "CmdLineChartWindowChangeTracerProperty.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdLineChartWindowChangeTracerProperty::CmdLineChartWindowChangeTracerProperty()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdLineChartWindowChangeTracerProperty::~CmdLineChartWindowChangeTracerProperty()
    {
    }

    bool CmdLineChartWindowChangeTracerProperty::execute()
    {
        bool _success = false;
        emit IBaseSignalInstance->signal_lineChartWindowChangeTracerProperty(m_tracerID, m_tracerName, m_x, m_symbolStyle, m_symbolSize, m_symbolColor);
        return true;
    }

    void CmdLineChartWindowChangeTracerProperty::undo()
    {
        // TODO: undo
    }

    void CmdLineChartWindowChangeTracerProperty::redo()
    {
        execute();
    }

}
